package com.capri.api;

import com.capri.model.bean.AllOrdersBean;
import com.capri.model.bean.BaseResultBean;
import com.capri.model.bean.LoginResultBean;
import com.capri.model.bean.OrderDetailBean;
import com.capri.model.bean.OrderNumBean;
import com.capri.model.bean.TodayOrderBean;
import com.capri.model.bean.VerifyCodeResultBean;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

public interface NurseHomeApi {
    @GET("user/login")
    Observable<LoginResultBean> login(@Query("username")String username,@Query("password")String password);
    @GET("user/sendCode")
    Observable<VerifyCodeResultBean> getVerifyCode(@Query("mobile")String mobile);
    @GET("user/resetPwd")
    Observable<BaseResultBean> resetPwd(@Query("mobile")String mobile, @Query("code")String code, @Query("password")String password, @Query("confirmPassword")String confirmPassword);
    @GET("user/modifyPwd")
    Observable<BaseResultBean> modifyPwd(@Query("oldPassword")String oldPassword,@Query("newPassword")String newPassword,@Query("newConfirmPassword")String newConfirmPassword);
    @GET("order/list")
    Observable<AllOrdersBean> GetAllOrders(@Query("pageSize")int pageSize,@Query("timeline")String timeline,@Query("serviceStatus")String serviceStatus);
    @GET("order/detail")
    Observable<OrderDetailBean> GetOrderDetail(@Query("id")String id);
    @GET("order/count")
    Observable<OrderNumBean> GetOrderNum();
    @GET("order/todayList")
    Observable<TodayOrderBean> GetTodayOrder();
    @GET("order/updateOrderServiceStatus")
    Observable<BaseResultBean> UpdateOrderStatus(@Query("id")String id,@Query("serviceStatus")String serviceStatus);
    @GET("nurse/position")
    Observable<BaseResultBean> uploadGeoInfo(@Query("orderId")String orderId,@Query("longitude")String longitude,@Query("latitude")String latitude);
}
